package cn.tedu.egweibo4.controller;

import cn.tedu.egweibo4.common.response.JsonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@Api(tags = "01.测试模块")
@RestController
@RequestMapping("/v1/users/")
public class TestController {


    @GetMapping("select")
    @ApiOperation("测试接口")
    @ApiImplicitParam(name = "id", value = "用户id", required = true, dataType = "int")
    public JsonResult select(int id) {
        log.debug("id =" + id);
        return JsonResult.ok();
    }

}
